package be.bonamis.umpire.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name = "UMP_DAYS")
@IdClass(UmpireDayId.class)
public class UmpireLeagueDay {
	@Id
	private long umpireId;
	@Id
	private long dayId;
	private String remarque;
	private boolean response;
	@ManyToOne
	@PrimaryKeyJoinColumn(name = "PERSON_ID", referencedColumnName = "PERSON_ID")
	private Umpire umpire;
	@ManyToOne
	@PrimaryKeyJoinColumn(name = "LEAGUE_DAY_ID", referencedColumnName = "ID")
	private LeagueDay day;
	private int dayMonth;
	private int dayYear;

	public long getUmpireId() {
		return umpireId;
	}

	public void setUmpireId(long umpireId) {
		this.umpireId = umpireId;
	}

	public long getDayId() {
		return dayId;
	}

	public void setDayId(long dayId) {
		this.dayId = dayId;
	}

	public String getRemarque() {
		return remarque;
	}

	public void setRemarque(String remarque) {
		this.remarque = remarque;
	}

	public Umpire getUmpire() {
		return umpire;
	}

	public void setUmpire(Umpire umpire) {
		this.umpire = umpire;
	}

	public LeagueDay getDay() {
		return day;
	}

	public void setDay(LeagueDay day) {
		this.day = day;
	}

	public boolean isResponse() {
		return response;
	}

	public void setResponse(boolean response) {
		this.response = response;
	}

	public int getDayMonth() {
		return dayMonth;
	}

	public void setDayMonth(int dayMonth) {
		this.dayMonth = dayMonth;
	}

	public int getDayYear() {
		return dayYear;
	}

	public void setDayYear(int dayYear) {
		this.dayYear = dayYear;
	}
}
